
#ifndef NCSSTRINGLISTEDIT_H
#define NCSSTRINGLISTEDIT_H

#include <ncsppt_export.h>
#include <QtCore/QStringList>
#include <QtWidgets/QToolButton>

class NcsProp;

class NCSPPT_EXPORT NcsStringListEdit: public QToolButton
{
    Q_OBJECT
public:
    explicit NcsStringListEdit(NcsProp* prop, QWidget *parent = 0);
    virtual ~NcsStringListEdit();

    void updateProp(const QStringList &stringList);

private slots:
    void popupEditor();

private:
    QStringList m_stringList;
    NcsProp*    m_prop = nullptr; 
};

//--------------------------------------------------------------------------------------------------

#endif // NCSSTRINGLISTEDIT_H
